* {
    margin: 0;
    padding: 0;

}

.w {
    /* 确认版型，高度1200像素，水平居中显示,后面使用调用即可 */
    width: 1200px;
    margin: 0 auto;
}

body {
    background-color: #f3f5f7;
}

li {
    /* 清除页面中所有li 前面的黑色点 */
    list-style: none;
}

a {
    /* 清除下划线 */
    text-decoration: none;
}

.header {
    height: 42px;
    /* 注意此地方会层叠w里面的margin,所以左右加个auto
    margin:30px auto; */
    margin: 30px auto;
    overflow: hidden;
}

.logo {
    /* 一个盒子加浮动所有的盒子都加浮动 */
    float: left;
    width: 198px;
    height: 42px;
}

.nav {
    float: left;
    margin-left: 60px;
}

.nav ul li {
    float: left;
    margin: 0 15px;

}

.nav ul li a {
    display: block;
    height: 42px;
    /* 字数不同。可以给个padding将盒子撑开（行内元素没有宽高） */
    padding: 0 10px;
    line-height: 42px;
    font-size: 18px;
    color: #050505;
}

.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
    color: #00a4ff;
}

/* search搜索模块 */
.search {
    float: left;
    width: 412px;
    height: 42px;
    background-color: #00a4ff;
    margin-left: 70px;
}

.search input {
    float: left;
    /* 原本width=360px,减去panddign的值 */
    width: 345px;
    /* 高度42px;减去上下边框两像素 */
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0;
    font-size: 14px;
    /* 已经有宽度了，会撑大盒子，需要宽度减去padding的值 */
    padding-left: 15px;
}

.search button {
    float: left;
    width: 50px;
    height: 42px;
    /* 按钮bottom默认有个边框需要手动去掉 */
    border: 0;
    /* 行内块元素之间会有个空隙,
    这时buttoon会应为这个空隙掉下来（input和bottom加起来的宽度大于盒子本身的宽度），这时将两个行内块元素设置成浮动就可以避免 */
    background: url(./images/btn.png);
}

.user {
    float: right;
    line-height: 42px;
    margin-right: 30px;
    font-size: 14px;
    color: #666;
}

.user img {
    vertical-align: middle;
}

/* banner区域 */
.banner {
    height: 421px;
    background-color: #1c036c;
    overflow: hidden;
}

.banner .w {
    height: 421px;
    background: url(./images/banner2.png) no-repeat top center;
}

.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background-color: rgba(0, 0, 0, .5);
}

.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}

.subnav ul li a {
    font-size: 14px;
    color: #ffff;
}

.subnav ul li a span {
    float: right;
}

.subnav ul li a:hover {
    color: #00a4ff;
}

.course {
    float: right;
    width: 230px;
    height: 300px;
    background-color: white;
    /* 浮动的盒子不会有外边距合并的问题 */
    margin-top: 50px;
}

.course h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: #ffff;
}

.bd {
    padding: 0 20px;
}

.bd ul li {
    padding: 14px 0;
    border-bottom: 1px solid #ccc;
}

.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}

.bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}

.bd .more {
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    margin-top: 5px;
    line-height: 38px;
    color: #00a4ff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;

}

/* 3.精品推荐模块 */
.goods {
    height: 60px;
    background-color: #fff;
    margin-top: 10px;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, .1);
    /* 行高会继承给其他的子代 */
    line-height: 60px;
    overflow: hidden;
}

.goods h3 {
    float: left;
    margin-left: 30px;
    font-size: 16px;
    color: #00a4ff;
}

.goods ul {
    float: left;
}

.goods ul li {
    float: left;
    margin-left: 30px;
}

.goods ul li a {
    padding: 0 30px;
    font-size: 16px;
    color: #050505;
    border-left: 1px solid #ccc;

}

.mod {
    float: right;
    margin-right: 30px;
    font-size: 14px;
    color: #00a4ff;
}

.box {
    margin-top: 30px;
}

.box-hd {
    height: 45px;
}

.box-hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
    line-height: 45px;
    margin-left: 30px;
}

.box-hd a {
    float: right;
    font-size: 12px;
    color: #a4a5a5;
    margin-top: 10px;
    margin-right: 30px;
}

/* 将最外面的两个盒子的外边距设置成 0*/
.box-bd ul li:nth-child(5n) {
    margin-right: 0;
}

.box-bd ul li {
    position: relative;
    float: left;
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;
}

.box-bd ul li>img {
    width: 100%;
}

.box-bd ul li em {
    position: absolute;
    top: 4px;
    right: -4px;
}

.box-bd ul li h4 {
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    color: #050505;
    font-weight: 400;
}

.box-bd .info {
    margin: 0 20px 0 25px;
    font-size: 12px;
    color: #494949;
}

.box-bd .info span {
    color: #ff7c2d;
}

.chance {
    position: fixed;
    top: 300px;
    right: 0;
    width: 150px;
    height: 425px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #00a4ff;
}

.chance ul li {
    margin: 15px auto;
}

.chance ul li a {
    margin: 25px 0 25px 25px;
    color: #000000;
    font-size: 14px;
}

.chance ul li a:hover {
    color: #00a4ff;
}

.box1 {
    margin-top: 30px;
    margin-right: 170px;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {
    /* IE6;7专有 */
    *zoom: 1;
}

.box-hd1 {
    height: 45px;
}

.box-hd1 h3 {
    float: left;
    font-size: 20px;
    color: #494949;
    line-height: 45px;
    margin-left: 30px;
    overflow: hidden;
}

.box-hd1 .search1 {
    float: right;
    font-size: 12px;
    color: #a4a5a5;
    margin-top: 10px;
    margin-right: 30px;
}

.box-hd1 ul {
    float: left;
    margin-left: 175px;
}

.box-hd1 ul li {
    float: left;
    margin-left: 104px;
    line-height: 45px;
}

.box-hd1 ul li a {
    font-size: 16px;
    color: #868686;
}

.box-hd1 ul li a:hover {
    color: #00a4ff;
    border-bottom: 2px solid #00a4ff;
}

.box1 .left-nav {
    float: left;
    width: 228px;
    height: 390px;
    margin-top: 10px;
}

.box1 .left-nav img {
    float: left;
}

.box1 .left-top {
    height: 100px;
    margin-top: 10px;
    overflow: hidden;
}

.box1 .left-top img {
    margin-left: 15px;
    width: 100%;
}

.box1 .right-bottom .last1 {
    margin-right: 0;
}

.box1 .right-bottom ul {
    float: left;
    margin-top: 20px;
    margin-left: 14px;
}

.box1 .right-bottom ul li {
    float: left;
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
}

.right-bottom ul li img {
    width: 100%;
}

.right-bottom ul li h4 {
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    color: #050505;
    font-weight: 400;
}

.right-bottom .info1 {
    margin: 0 20px 0 25px;
    font-size: 12px;
    color: #494949;
}

.right-bottom .info1 span {
    color: #ff7c2d;
}

/* footer模块 */
.footer {
    height: 425px;
    background-color: #fff;
    margin-top: 15px;
}

.footer .w {
    padding-top: 35px;
}

.copyright {
    float: left;
}

.copyright p {
    font-size: 12px;
    color: #666;
    margin: 20px 0 15px 0;
}

.copyright .app {
    display: block;
    width: 118px;
    height: 33px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 33px;
    color: #00a4ff;
    font-size: 16px;
}

.links {
    float: right;
}

.links dl {
    margin-left: 100px;
    float: left;
}

.links dl dt {
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.links dl dd a {
    font-size: 12px;
    color: #333;
}